// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import BaiduMap from 'vue-baidu-map'
axios.defaults.baseURL='http://localhost:9527/'
Vue.prototype.$axios=axios

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//在main.js导入store.js
import store from './store.js'

Vue.config.productionTip = false

Vue.use(BaiduMap,{
  ak:'A9DiWP5Xu3wrmNhQFAg5NBsgIccMRYeS'
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,//把store注册到vue实例中,vue才能使用vuex
  components: { App },
  template: '<App/>'
})
